<include file="./Tpl/Admin/header.html" />
<style type="text/css">
.listdo a{display:block;margin:5px 0px;}
</style>
<div class="main">
	<div class="main_title">
	    <div class="search">
			<span>账号：</span><input type="text" name="key_username" id="key_username" value="{$key_username}"/>
			<span>邮箱：</span><input type="text" name="key_email" id="key_email" value="{$key_email}"/>
			<input type="button" id="s_btn" value=" 搜 索 "/>
			<script language="javascript">
			    $('#s_btn').click(function(){
					 window.location.href='/?s=Admin/User/index/key_email/'+$('#key_email').val()+'/key_username/'+$('#key_username').val();
				});
			</script>
		</div>
		<img src="/Public/Admin/images/book1.gif"/>&nbsp;&nbsp;会员管理
	</div>
	<eq name="module" value="list">
	<if condition="$module eq 'list'">
	<div class="list_body">
		<table cellspacing=0 cellpadding=0 border=0>
			<tr>
			<th>ID</th>
			<th>账号</th>
			<th>密码</th>
			<th>电子邮箱</th>
			<th>是否激活</th>
			<th>注册时间</th>
			<th>资金列表</th>
			<th>操作</th>
			</tr>
			<volist name="list" id="vo">
			<tr>
			<td class="listid">{$vo.id|default='0'}</td>
			<td>{$vo.username|default='无'}</td>
			<td>{$vo.pwdshow|default='无'}</td>
			<td>{$vo.email|default='无'}</td>
			<td class="listis"><eq name="vo.isclose" value="1">激活<else/>未激活</eq></td>
			<td class="listtime">{$vo.addtime|default='无'}</td>
			<td class="listtime">
			    <table cellspacing=0 cellpadding=0 border=0>
				<tr>
				<th>币种名称</th><th>当前余额</th><th>挂单数量</th><th>充值地址</th>
				</tr>
                <volist name="vo.types" id="vo1">
                <tr>
				<td>{$vo1.name}</td><td>{$vo1.goldnum|default='0.000000'}</td><td>{$vo1.gdgold|default='0.000000'}</td><td>{$vo1.url|default='无'}</td>
				</tr>
				</volist>
				</table>
            </td>
			<td class="listdo">
			<a href="/?s=Admin/CzApply/index/userid/{$vo.id|default='0'}">充值记录</a>
			<a href="/?s=Admin/TransLog/index/userid/{$vo.id|default='0'}">交易记录</a>
			<a href="/?s=Admin/User/chongzhi/id/{$vo.id|default='0'}">充值</a>
			<a href="?s=Admin/User/set/id/{$vo.id}">修改</a>
			<a href="?s=Admin/User/del/id/{$vo.id|default='0'}">删除</a>
			</td>
			</tr>
			</volist>
		</table>
		<div class="page">
			<a href="/?s=Admin/User/index/page/1{$url_param}">首页</a>
			<a href="/?s=Admin/User/index/page/{$page-1}{$url_param}">上一页</a>
			<a href="/?s=Admin/User/index/page/{$page+1}{$url_param}">下一页</a>
			<a href="/?s=Admin/User/index/page/{$endpage}{$url_param}">尾页</a>
			<span>第 [{$page}] 页 / 共 [{$pagenum}] 页; 共 [{$count}] 条记录</span>
		</div>
	</div>
	<elseif condition="$module eq 'chongzhi'"/>
	<div class="main_body">
		<form action="?s=Admin/User/chongzhido" method="post">
		<input type="hidden" name="userid" value="{$id|default='0'}"/>
		<table cellspacing=0 cellpadding=0 border=0>
		<tr><td>账号</td><td>{$username}</td></tr>
		<tr><td>数量</td><td><input type="text" name="goldnum"/></td></tr>
		<tr><td>币种</td><td>
		<select name="typeid">
		    <volist name="types" id="vo">
		    <option value="{$vo.id}">{$vo.name}</option>
            </volist>
		</select>
		</td></tr>
		</table>
		<div><input type="submit" value="提交"/></div>
		</form>
	</div>
	<else/>
	<div class="main_body">
		<form action="?s=Admin/User/update" method="post">
		<input type="hidden" name="id" value="{$id|default='0'}"/>
		<table cellspacing=0 cellpadding=0 border=0>
		<tr><td>账号</td><td><input type="text" name="username" value="{$username}"/></td></tr>
		<tr><td>邮箱</td><td><input type="text" name="email" value="{$email}"/></td></tr>
		<tr><td>密码</td><td><input type="text" name="password" value="{$pwdshow}"/></td></tr>
		<!--tr>
		    <td>是否关闭</td>
			<td>
				<input type="radio" name="isclose" value="1" <eq name="isclose" value="1">checked</eq>/>关闭
				<input type="radio" name="isclose" value="0" <eq name="isclose" value="0">checked</eq> <empty name="isclose">checked</empty>/>启用
			</td>
		</tr-->
		</table>
		<div><input type="submit" value="提交"/></div>
		</form>
	</div>
	</eq>
</div>
<include file="./Tpl/Admin/footer.html" />